package agency;

import java.lang.reflect.InvocationHandler;

/**
 * @author CC小天才
 * @website www.flyskill.cn
 * @date 2021/10/6 15:32
 **/

public class GamePlayerProxy implements IGamePlayer {

    private GamePlayer gamePlayer=null;
    public GamePlayerProxy(GamePlayer gamePlayer) {
        this.gamePlayer=gamePlayer;
    }

    @Override
    public void killBoss() {
        this.gamePlayer.killBoss();
    }

    @Override
    public void login(String username, String password) {
        this.gamePlayer.login(username, password);
    }

    @Override
    public void upgrade() {
        this.gamePlayer.upgrade();

    }
}
